Move the rtnl code to a separate source file