removeClass(element, className) {
    if (!element || !className || !(element instanceof HTMLElement)) {
      return this;
    }
    // Allow templates to intercept.
    let cls = element.getAttribute('class');
    if (cls) {
      cls = cls.replace(new RegExp(` ${className}`, 'g'), '');
      element.setAttribute('class', cls);
    }

    return this;
  }
Remove a class from a DOM element.
@param {HTMLElement} element - The DOM element to remove the class from.
@param {string} className - The name of the class that is to be removed.
@returns {this} - The instance of the element.