Factory slaughtering living things that grew up in what’s effectively a prison is not lessening harm.
you can’t know that. consequentialist ethics run into this all the time: you can’t actually know what the future holds, and it may be that without the current agricultural system, even more harm would have been done.