My own view is that being a vegetarian or vegan is not an end in itself, but a means towards reducing both human and animal suffering and leaving a habitable planet to future generations.
Animal factories are one more sign of the extent to which our technological capacities have advanced faster than our ethics.