Strip out a bunch of features: sudo, legacy-mode, file/script.