Remove methods registerBundlesExtension & registerDoctrineExtension