Moving helpers and routes to separate files.