Simplify if statement
Create test for utility.collectRoutes()
Validate object in utility.collectRoutes() test
Define utility.collectRoutes()

Need to rethink this, though