Remove unnecessary packages