Extract StandupState & MemoryStandupState

Allows to use different state implementations in the future