anchor.diff:  ) ->
       notify_processed_file(SpaceId,ReportId);
   process_replica_deletion_result(Error, SpaceId, FileUuid, ReportId) ->
  -    {ARId, _BatchNum} = from_batch_id(ReportId),
  +    {ARId, _BatchNum} = unpack_batch_id(ReportId),
       ?error("Error ~p occured during auto-cleanig of file ~p in run ~p",
           [Error, FileUuid, ARId]),
       notify_processed_file(SpaceId,ReportId).
   
  --spec to_batch_id(autocleaning:run_id(), non_neg_integer()) -> batch_id().
  -to_batch_id(ARId, Int) ->
  -    <<ARId/binary, ?ID_SEPARATOR/binary, (integer_to_binary(Int))/binary>>.
  -
  --spec from_batch_id(batch_id()) -> {autocleaning:run_id(), non_neg_integer()}.
  -from_batch_id(BatchId) ->
  -    [ARId, BatchNum] = binary:split(BatchId, ?ID_SEPARATOR),
  -    {ARId, binary_to_integer(BatchNum)}.
  +-spec pack_batch_id(autocleaning:run_id(), non_neg_integer()) -> batch_id().
  +pack_batch_id(AutocleaningRunId, Int) ->
  +    <<AutocleaningRunId/binary, ?ID_SEPARATOR/binary, (integer_to_binary(Int))/binary>>.
  +
  +-spec unpack_batch_id(batch_id()) -> {autocleaning:run_id(), non_neg_integer()}.
  +unpack_batch_id(BatchId) ->
  +    [AutocleaningRunId, BatchNum] = binary:split(BatchId, ?ID_SEPARATOR),
  +    {AutocleaningRunId, binary_to_integer(BatchNum)}.
   
   %%%===================================================================
   %%% gen_server callbacks
  
positive.code: }) when BytesToRelease =< ReleasedBytes ->
  
      lists:foreach(fun(BatchNum) ->
          replica_deletion_master:cancel(to_batch_id(ARId, BatchNum), SpaceId)
      end, maps:keys(BatchesCounters)),
  
      State#state{
  
negative.code:             undefined ->
                  ScheduledNumIn;
              {FileUuid, Provider, Blocks, VV} ->
                  BatchId = pack_batch_id(ARId, BatchNum),
                  schedule_replica_deletion_task(FileUuid, Provider, Blocks, VV, BatchId, SpaceId),
                  ScheduledNumIn + 1
          end
  