Reimplement #fromExtension