Legend cleanup