The Presbyterian Church (USA) has a clause in the Book of Order specifying that the congregation holds the property in trust for the whole denomination.
Every year some congregations want to leave the denomination. Naturally, they want to take their building with them. The denomination points to the trust clause. The civil courts almost invariably agree with the denomination.
I believe the legal issue is settled. Everyone should accept that. No more lawsuits gambling that some court will take the law into its own hands and decide differently.
However, I think it is also reasonable to let the departing congregation have their church building at some reasonable cost. This should be decided on a case-by-case basis. There might be some specific church buildings that the denomination will not part with at any price. That is a question for the presbytery, I believe.
As a rule of thumb, though, I think that if the congregation is willing to pay back to the denomination whatever funds were given or loaned to it by the denomination, plus some reasonable premium for years of good will - say, 10% more, to pick a number out of the air -- then the denomination should let them go, and godspeed.
I hate unilateral divorce, but at a certain point, if one party has already decided to leave, playing dog-in-the-manger with the stuff that remains does no one any good, and engenders further ill will.