Consolidate hash functions