Simplify Registry.prototype.extensionsForType.