Mondelez International has confirmed plans to close two factories, in Lebanon and Morocco, as it looks to streamline its gum production base in the region.