Moved factories.rb to factories subdirectory