The old version was brittle and made conditional operations hard.
This module will later be used for other export types than just DXF.