Refactor fsm from task model to activation classes