Nestle is offloading a majority stake in a factory in northern China.