defs.define_constant('RSpec::Core::LegacyExampleGroupHash') do |klass|
    klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    klass.inherits(defs.constant_proxy('RSpec::Core::HashImitatable', RubyLint.registry))

    klass.define_instance_method('initialize') do |method|