Remove legacy legend classes