minor code cleanups in MergingEventHandler