Judge and mentor L.A. Reid is leaving the X Factor