Fix assumptions_spec deprecation warning

* Some deprecations are triggered just by `Module.const_get(CONSTANT)`