Shouldn't we assert that `context.CurrentBranch` is null here?