Replace `hash` lookup with `hash_of`