Refactor shared event emission code in subscribers to EventSourceSubscriber.