Refactored WriterBuilder.