Mechanical cleaning with a small soft wire brush, Scothbrite pads the better choice, be careful not to remove all, (all) of the galvanized coating. I have painted track/switches with Testors Model Master acrylic paint, and removed paint, from the top of the rail, as needed, for proper operation. Long storage, or a humid environment, a light coating with 3&1 oil to inhibit surface rust. IMO Mike CT.
New switch
Painted, Airbrush application. Paint removed, from the top of rail, with lacquer thinner (note safety precaution), and a scotch brite pad.