'Helper to avoid deep nesting in the top-level method.'

def _do_rebuild_instance_with_claim(self, claim_context, *args, **kwargs):

    with claim_context:
        self._do_rebuild_instance(*args, **kwargs)
