Refactor to eliminate the DoWriteChars() layer.