The chocolate firm had held the royal warrant for 170 years since 1854.