I can see this as a possible trade
Kings get grant and a solid backup pg in cojo
Fox-Hali-Barnes-Grant-Holmes with Hield as 6th man
Pistons get a look at Bagley for the rest of the year some cap relief a couple 2nds and a young prospect in Mitchell.
Hayes-Cade-Bey-Bagley-Olynyk Mitchell-Jackson-Hami-Lylea-Stewart/Thompson off the bench
After the season you would have cap room(even more if you don't bring Bagley back) with a need at PF and cap space to pair with the young core of Cade-Bey-Stewart-Hami-Mitchell-Hayes and a top ish draft pick.