Pileup mitigation at CMS in 13 TeV data