Refactoring routes.php