Refactors route functions to routeCtrl folder