unify code being used by both ActorEventSubscriber and ObjectEventSubscriber