The best way to prevent rodents from infesting your farmyard is to remove woodpiles, construction materials, and hay mounds.