Moved sub-routes to script files