Remove unnecessary library packages.