Refactor horse.rb and breeder.rb