public function getDeprecatedReleases($treshold = null)
    {
        $releases = $this->getReleases();
        $treshold = $treshold ?: $this->config->get('remote.keep_releases');

        // Get first X valid releases
        $keep = $this->getValidReleases();
        $keep = array_slice($keep, 0, $treshold);

        // Compute diff
        $deprecated = array_diff($releases, $keep);
        $deprecated = array_values($deprecated);

        return $deprecated;
    }