Nestle SA agreed to sell its U.S. confectionery unit to Ferrero SpA, the Italian maker of Nutella, in the Swiss food giant’s first major divestment since Chief Executive Officer Mark Schneider took the helm last year.

The sale of the unit, which includes the Butterfinger and Baby Ruth brands, is the first substantial step away from the candy industry by the company that invented milk chocolate. Vevey, Switzerland-based Nestle plans to focus on healthier and faster-growing categories like coffee, pet food and water as the food industry grapples with a drop in demand for sugary products.

The U.S. chocolate industry is in tumult. Hershey Co. has been cutting 15 per cent of its workforce and Lindt & Spruengli AG on Tuesday reported the weakest organic sales growth since 2009 amid sluggish demand in North America.

The Nestle unit, which also includes brands like Oh Henry!, Laffy Taffy and Nerds, is suffering a decline in revenue and had sales of about US$900 million in 2016. Nestle said in a statement announcing the sale that it remains “fully committed” to its chocolate business around the world. That includes KitKat, which it produces globally except for the U.S., where Hershey Co. owns the rights.

Nestle said in June it was considering options for the U.S. confectionery unit, and said it attracted significant interest from bidders in July. In December, the company said it expected to sell the business in the first quarter of 2018.

Hershey, which was named as one of the potential bidders, last month agreed to pay US$921 million for Amplify Snack Brands Inc. to expand into popcorn and potato chips.