Extract router to app