Remove unused code and packages.