Split out the Dwarf writer stuff into separate files. This is a much more