Scientific and technological progress will make factory farming obsolete in the near future. Here is short video explaining how we can still consume meat and dairy products, while avoiding the mistreating of animals.
For more info:
Perfect Day Foods (animal free dairy)
Cultured Beef (Mark Post’s official web page)