Refactory DumpEventSource to split output file