move the batch __addOp method to the Batch prototype