[controller] Moved to controller class.