Migrate flow control in the controller.