       (defun spacemacs/state-color-face (state)
         "Return the symbol of the face for the given STATE."
         (intern (format "spacemacs-%s-face" (symbol-name state))))
-
-      (defun spacemacs/defface-state-color (state color)
-        "Define a face for the given STATE and background COLOR."
-        (eval `(defface ,(spacemacs/state-color-face state) '((t ()))
-                 ,(format "%s state face." (symbol-name state))
-                 :group 'spacemacs))
-        (set-face-attribute (spacemacs/state-color-face state) nil
-                            :background color
-                            :foreground (face-background 'mode-line)
-                            :box (face-attribute 'mode-line :box)
-                            :inherit 'mode-line))
 
       (defun spacemacs/state-color (state)
         "Return the color string associated to STATE."

    :commands hybrid-mode
    :init
    (progn
      (add-to-list 'spacemacs-evil-cursor-colors
                   `(hybrid . ,(spacemacs/state-color 'emacs)))
      (spacemacs/set-state-faces)
      (setq hybrid-mode-insert-state-cursor
            (if (and (display-graphic-p)
                     dotspacemacs-colorize-cursor-according-to-state)

                                 'spacemacs-emacs-face
                               'spacemacs-insert-face-backup)
                             'spacemacs-insert-face)))
      (when (eq 'hybrid dotspacemacs-editing-style) (hybrid-mode))
      (spacemacs|add-toggle hybrid-mode
        :status hybrid-mode
        :on (hybrid-mode)
