Refactor out packageDependencies, ignore test deps