Move routerinfo_t functions out of router.c