Refactory the routers.