DOCS-1006, table-builder: refactor to permit additional output types