Remove unused packages and variables.