Transfer the channel command handler to a separate class