This 2021 journal article from Temple Grandin explains ways to minimize stress on livestock, which in turn reduces hazards to farmers and farm workers.
Download the The Visual, Auditory, and Physical Environment of Livestock Handling Facilities and Its Effect on Ease of Movement of Cattle, Pigs, and Sheep article.