Refactored a spec in deletePackage() per CR