Merge duplicate cleanup