Refactor routes to use a different file