Merge duplicate definitions.