Mondelez International has sold its Huesitos and Tokke chocolate brands to Chocolates Valor for an undisclosed sum.

The confectionery giant announced in May that it would stop production at the Ateca facility in Zaragoza, which produces the two brands, along with its Dos Hermanas plant in Seville. Mondelez said the decision to close the Ateca plant was taken due to a fall in output of candy and chocolate bars at the factory, which is only using 29% of its production capacity.

The deal will see Valencia-based Valor enter into the chocolate snacks category. At present, it produces chocolate tablets, hot chocolate and pastries.

The agreement is exclusively for the chocolate manufacturing business of the plant and the Huesitos and Tokke brands. Once finalised, the gum and candy lines that aren’t within the agreement will be moved to Mondelez’s manufacturing plant in Valladolid, as previously announced.

“Mondelez International is very satisfied to have reached this agreement,” the company said. “It is a good solution for the company and for the Ateca plant, as allows the continuity of the production. Moreover, it is an expression of the company’s corporate responsibility.”

The transaction is expected to be finalised after the summer. Until then, the business will be operating as usual and the plant and the brands will be managed by Mondelez.