jack the car up and support it on axle stands, climb underneath, unplug the wiring from the switch, then unscrew the switch, refit in reverse order, job sorted.
You may possibly be able to replace it by reaching around the inlet without jacking the car up.