Start to refactor controllers and routes.