The capacitor from Line to Ground is supposed to filter out mains 'noise'.
Whatever that is.
If it is a Y2 capacitor, then it is safe to leave it in.
There really is no need to change any of the wiring.
The switch will simply not do anything.
Then again, it could be used as a placebo switch.