/**
  * Removes the parent category for a root category.
  *
  * @param CategoryInterface $category The category.
  */
 private function removeParentCategoryForRootCategory(CategoryInterface $category)
 {
     if ($category->isRoot()) {
         $category->setParent(null);
     }
 }