Break out sstable writer
No need for counting writer here
Refactoring for flushing memtables