Isolate eventsingle such that it does not depend on eventportal or userportal