And the legitimate government can operate in exile, ready to return if it becomes viable. Inusrgents fighting on their behalf could coordinate with them. I'm very out of my depth but it seems like this must be a common scenario, particularly when the displaced government is legitimate.