To prep for the transition of code migrating from Larch to Central, for STG (Smart Tab Grouping), the best technique would be to implement peace by peace not to overwhelm a single patch. This bug is the beginning of said work by setting the ground work for the state machine that manages the many additional states used by the STG feature. Differential Revision: https://phabricator.services.mozilla.com/D235712