class FactoryBot::Factory

def parent

def parent
  if @parent
    FactoryBot::Internal.factory_by_name(@parent)
  else
    NullFactory.new
  end
end