[major] Code cleanup, remove deprecated `state`
Note: this MR merges into v2
branch, for future new major release.
- Removes deprecated
state
option for calling the generator (usescript
instead). - Removes unused argument config from some contexts, so it isn't a misdirect for people reading the code.