code: function extractOps(data) {
    const ops = {};
  
    _.forIn(data, (attribute, key) => {
      if (isOp(attribute)) {
        ops[key] = attribute;
        delete data[key];
      }
    });
  
    return ops;
  }
docs: Destructive. Takes data for update operation and removes all atomic operations. Returns the extracted ops.