Extract hash functions from class utils