Not only is it re-useable it also allows for easier debugging by separating the ring buffer specific logic and the pager history logic. Hopefully it fixes #3049