createRippleDeactivateCallback(eventType, rippleKey) {
        const self = this;
        return function endRipple() {
          document.removeEventListener(eventType, endRipple);
          self.setState({
            ripples: {
              ...self.state.ripples,
              [rippleKey]: Object.assign({}, self.state.ripples[rippleKey], { active: false }),
            },
          });
        };
      }
Generates a function that can be called to deactivate a ripple and remove its finishing
event listener. If is generated because we need to store it to be called on unmount in case
the ripple is still running.

@param {String} eventType Is the event type that can be touchend or mouseup
@param {String} rippleKey Is the key representing the ripple
@return {Function} Callback function that deactivates the ripple and removes the listener