move `Hash` monkeypatch to separate file