Make an abstraction of ut_output_reporter and move the logic of operating on outputbuffer and move it to the reporter class.