Cleanup of module loading from imports.