protected function getReleasesToCleanup()
    {
        return $this->getOption('clean-all', true)
            ? $this->releasesManager->getNonCurrentReleases()
            : $this->releasesManager->getDeprecatedReleases();
    }