Headlight short

Just disconnected the headlight switch and sure enough, the wire going to the B-1 terminal was melted + corroded and barely even attached to the connector.
On the other hand, I can't seen to get the switch out to inspect it. I took the knob out, but I can't figure out how it attaches to the dash since the fusebox is in the way.