refactors routes into separate files