Refactor the BundleAutoloader::load() method