[FEATURE] Refactor routes and actions into controllers.