It's instinctive to encapsulate state in the workflow class if you're not familiar with the framework.