Dairy farmers must take certain steps to ensure the quality of their milk.