In order to clean up the code and make testing easier, we should move handling of the producer offsets into a separate class.
In order to clean up the code and make testing easier, we should move handling of the producer offsets into a separate class.