The Comey Thing is without doubt an effort by the Trump regime to consolidate power and neuter any effort by the so-called "deep state" to interfere with the regime's exercise of power.
Analysts are wetting themselves trying to pin this or that meaning or significance to the firing of James Comey by Trump, but they have so far missed the bigger picture.
There have been several opportunities for a coup or coup-lite since the election, and each of them has been whiffed. Those opportunities are disappearing. The regime is learning how to consolidate and exercise power, and soon, it will be almost impossible to get out from under that power. We saw it happen in almost the same way with Bush/Cheney.
From a purely pragmatic point of view, Trump is doing what he needs to do.
From practically every other point of view, it's a disaster.
It may be a disaster we have no way to avoid.