Start refactoring CSV metadata logging.
Refactor the message dispatch in preparation for snapshot logging.