Cleaning up the m_legends.