code: function removeToolState(element, toolType, data) {
    const toolStateManager = getElementToolStateManager(element);
    const toolData = toolStateManager.get(element, toolType);
    // Find this tool data
    let indexOfData = -1;
  
    for (let i = 0; i < toolData.data.length; i++) {
      if (toolData.data[i] === data) {
        indexOfData = i;
      }
    }
  
    if (indexOfData !== -1) {
      toolData.data.splice(indexOfData, 1);
  
      const eventType = EVENTS.MEASUREMENT_REMOVED;
      const eventData = {
        toolType,
        element,
        measurementData: data,
      };
  
      triggerEvent(element, eventType, eventData);
    }
  }
docs: Removes specific tool state from the toolStateManager.
  @public
  @method removeToolState
  
  @param  {HTMLElement} element  The element.
  @param  {string} toolType      The toolType of the state.
  @param  {Object} data          The data to remove from the toolStateManager.
  @returns {undefined}