I wouldn't have signed Sanheim to an 8 year contract, not because I don't value the player but because I'm realistic about the timeline and coffers in need of filling.
For argument's sake, let's say a team wasn't realistic about its timeline. Let's say it believed it could turn things around in, oh say, 3 years? Sanheim would be 30 years old, with 5 years left on his deal. That's a pretty normal veteran age. He's objectively a #2/3 caliber defender now, he's a smooth skater and those archetypes generally age well. So, if your internal timeline is to be back in the playoff mix at that time, then what is the impetus to urgently move him? The Flyers defensive depth looks awful now, and there's no high end guys in the system, unless they grossly misevaluate their stock (wouldn't be a shocker). Now, if it was for a teardown rebuild, I get it. But that's not what's going on.
In 3 years, Ristolainen will be 32 years old and on the final year of his contract. He's objectively a fringe bottom pair guy. None of this is an issue, however. There are no reports about trading him. We know why, and it's not good process and contradictory logic galore.