Refactored BatchOperationSpec