code: def load_factories_if_directory(path)
        if File.directory?(path)
          Dir[File.join(path, '**', '*.rb')].sort.each { |file| Kernel.load file }
        end
      end
docs: Internal: If the path is a directory, it loads all the factories in that path.