Refactor dwarf_runner.