move format code all in one place

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>