public function cleanup(string $time = self::DEFAULT_MAX_LENGTH) : void
    {
        $table = $this->loadModel('Search.SavedSearches');

        $date = strtotime($time);

        if (false === $date) {
            $this->err(sprintf('Failed to remove pre-saved searches, unsupported time value provided: %s', $time));

            return;
        }

        $count = $table->deleteAll([
            'modified <' => $date,
            'OR' => ['name' => '', 'name IS' => null]
        ]);

        $this->info($count . ' outdated pre-saved searches removed.');
    }