Refactoring around route collection from file