Move all state machine internal states into StateMachineData class