Moved an :async_event_demux method from the behavior into the class.