Duplication: extracted `hash` from `HashMap::hash` and `HashSet::hash`.