Move routes out of index file