merge-recursive: Move delete/modify handling into dedicated function