Refactoring route files