BundleGenerator: replaced extract() to help static code analysis and general comprehension