Move all routing logic into Route.