Moved responsibilities of creating routes.