Identifying variable modes

Hey friends who know their way in Figma!
I got a weird issue here with variable modes in my library - in my design system there are only 2 variable modes - Legacy and Dark, yet in some files I work on I see multiple other modes (named Mode, Light, etc.) - they are not in my design system and I’m not sure how can I remove them.
Added a screenshot below.
would love your help :slight_smile: