Removing unneeded code and package dependencies.