Split router to a file.