The Hershey Company says it will change chocolate-based recipes to milk and dark chocolate-based ingredients by 2027.