Okay, I concede your point here. Use class-based state for fields in a data type or configuration, but use local state for intermediate results in an algorithm.

Go ahead and do what Michael suggests.