Moved various output related functions into Formatter.h/Formatter.c.