private function getCategories(Description $description)
    {
        return array_map(
            function (\stdClass $categoryDescription) {
                return $this->categoryFactory->create(new Description($categoryDescription));
            },
            $description->getOptionalProperty('categories', [])
        );
    }