Simplify WSWriter::newDataWriter code