Creating a MessageParser class and a module for the batch parser