Figma Apply Variable Mode Switch Automatically

When ever I copy components from other files it automatically adds variable mode switch from that component variables.

I’m only using local variables and added M3 kit for components.

Is there any way to fix this besides detaching all variables from that component then import into the desired file.