Moving route methods to their own file