Remove explicit dedup_history function.