Refactor getPackages -> eachPackage to be consistent with eachFile.