If the switch that you found has 3 wires connected to it, then it is a Hall Effect Switch.
You can remove it, disassemble & clean it.
Be carefull not to lose the small parts that are inside of the switch.
Try all of this first, then let me know if you are making progress.
This is ONLY to be used to report flooding, spam, advertising and problematic (harassing, abusive or crude) posts.