Move debug formatter to new home

Helps with #408.