Extract duplicated code for management event trampolines