A random heatsink [SOLVED]

I am currently building an mx5 racecar and while stripping the headlights out have come across what looks to be a heatsink there is only one and it’s on the passenger side does anyone have an idea of what it is for? 

Is it just there too cool the wiring if so, would it be safe to remove if the headlights are removed or is it important that it stays on?

https://drive.google.com/file/d/1IdJv3r3F0EMgMapobPMdrDQ_Dy0iyVX5/view?usp=drivesdk

Thanks.

 

It’s for dim dip, dipped beam at a lower intensity.

Thank you, right on the money.

Guess that’s coming out then.