Extract PackageNameVersionExtractor class.