Moved ringbuffer definitions out of eventstore