Fix script editor popup menu by removing legacy code.
(Hope it isn't still required on any supported config)