Move Hash ext out of spec helper to lib