def METHOD_NAME(cls, integration):
    """Instantiate the appropriate implementation of MirrorUploader
    for the given ExternalIntegration.
    """
    if not integration:
        return None
    implementation_class = cls.IMPLEMENTATION_REGISTRY.get(
        integration.protocol, cls
    )
    return implementation_class(integration)