The best approach to protect your product from chemical contamination is to identify the hazards in your ingredients before they can affect your final product.
Science-based harmonization of food safety standards, especially those related to food additives, would have avoided this contamination incident altogether.