Remove plugins and some dependencies.