anchor.diff:      if
           Node =:= NewNode ->
               %% if there's nothing to move, we're done
  -            ok = janitor_agent:set_vbucket_state(Bucket, NewNode, Parent, VBucket, active, undefined, undefined);
  +            set_vbucket_state(Bucket, NewNode, Parent, VBucket, active, undefined, undefined);
           true ->
               ok = run_mover(Bucket, VBucket, Node, NewNode),
  -            ok = janitor_agent:set_vbucket_state(Bucket, NewNode, Parent, VBucket, active, undefined, undefined),
  +            set_vbucket_state(Bucket, NewNode, Parent, VBucket, active, undefined, undefined),
               ok
       end.
   
  
positive.code:             end,
  
              master_activity_events:note_takeover_started(Bucket, VBucket, OldMaster, NewMaster),
              ok = janitor_agent:upr_takeover(Bucket, Parent, OldMaster, NewMaster, VBucket),
              master_activity_events:note_takeover_ended(Bucket, VBucket, OldMaster, NewMaster)
      end,
  
      %% set new master to active state
      ok = janitor_agent:set_vbucket_state(Bucket, NewMaster, Parent, VBucket, active,
                                           undefined, undefined).
  
  wait_upr_data_move(Bucket, Parent, SrcNode, DstNodes, VBucket) ->
      spawn_and_wait(
  
negative.code:             new_ns_replicas_builder:shutdown_replicator(BuilderPid, NewNode),
              ?rebalance_info("Going to do takeover"),
              ok = run_mover(Bucket, VBucket, Node, NewNode),
              set_vbucket_state(Bucket, NewNode, Parent, VBucket, active, undefined, undefined)
      end.
  
  get_replica_and_backfill_nodes(MasterNode, [NewMasterNode|_] = NewChain) ->
  