Revert "Issue #2188661 by sun, Berdir: Extension System, Part II: ExtensionDiscovery."

This reverts commit ae8be3cc9684df1dabf9fd7df9f13e41afeb604f.