Farmers trading risks with barns, study shows