Refactoring: Splitting up lengthy method.
Packages are deleted on filesystem as well.