remove dependency-injected static state

**please review**
I think this change is really good. No more `assert false; // unreachable`.