Extract logic from model TaskLogic
Refactor extract StreamLogic from StreamObject
Refactor Stream and extract logic methods
Refactor extract stack operations from Stream to StackLogic
Refactor extract all stack operations from Stream to stackLogic