derivation: Coalesce multiple occurrences of the same input.