Extract action handler as a separate class.