Prunes everything except package loading from plugins.