Moved router to a separate file