How about a three team trade.
Bos: Out-Terry, Draft picks
In- Hayes, Trade exception ($5m)
Mem: Out-Trade exception ($5m)
In-Terry
Sac: Out-Hayes
In-Draft picks (Bos)
Only team that might hesitate would be Sacramento, but, depending on how badly the new ownership might want out from Hayes contract, they may pull the trigger.
Would be great for Boston. Get an additional low post presence, and a trade exception to use next season (couln't use it this season as it woul put them over the hard cap/tax apron). Sure, we lose Terry, but the way he has been playing, we could probably find a vet min buyout candidate who could replace his production. Also opens up more minutes for Barbosa.