Hershey has offloaded Chinese subsidiary Shanghai Golden Monkey after four years of at times challenging ownership.