Simplify Dedupe().