Starting refactor to move RingBuffer into a different package.