Move StringDocWriter to its own header file.