removing register_hashdefs from polluting global namespace