Refactor `diagrams` tool to simplify support for different output graph languages