The candy maker scrapped its volume-for-price playbook and adopted a collaborative approach to sharing the pain.