public function reset(SavedSearch $entity) : ?SavedSearch
    {
        $content = $entity->get('content');

        // for backward compatibility
        $saved = isset($content['saved']) ? $content['saved'] : $content;
        $entity = $this->normalize($entity, $saved, $saved);

        return $this->searchTable->save($entity) ? $entity : null;
    }