class FactoryBot::StrategySyntaxMethodRegistrar

def define_syntax_method(name, &block)

def define_syntax_method(name, &block)
  FactoryBot::Syntax::Methods.module_exec do
    if method_defined?(name) || private_method_defined?(name)
      undef_method(name)
    end
    define_method(name, &block)
  end
end