Possible implementation of an import hook for extensions.