Overhaul some dedupe/attribution of duplicates.