routes-util refactoring