refactor into multiple modules to separate DXF export code