               ;; still warn about mutliple owners
               (when (and (oref obj :owners)
                          (not (memq layer-name (oref obj :owners))))
-                (spacemacs-buffer/warning
+                (configuration-layer//warning
                  (format (concat "More than one init function found for "
                                  "package %S. Previous owner was %S, "
                                  "replacing it with layer %S.")

           ((and (listp location) (eq 'recipe (car location)))
            (configuration-layer//install-from-recipe pkg)
            (oset pkg :lazy-install nil))
           (t (spacemacs-buffer/warning "Cannot install package %S."
                                        pkg-name)))
        ('error
         (configuration-layer//increment-error-count)

         (recipe (cons pkg-name (cdr (oref pkg :location)))))
    (if recipe
        (quelpa recipe)
      (configuration-layer//warning
       (concat "Cannot find any recipe for package %S! Be sure "
               "to add a recipe for it in alist %S.")
       pkg-name recipes-var))))
