Is improving crop farming efficiency in HICs bad for farmed animal welfare?

I’m interested in whether crop farming R&D in HICs would be net positive.

I think it could make plant farming more profitable, so that farmers farm fewer animals, but I’m also worried it would make farms more profitable overall and they’d invest profits into doing more animal farming.

Is there any work in this, and what do you think?