Move PackageRequest creation out of NpmUtility into factory method