The future of livestock farming lies in balancing productivity with animal welfare.