Remove debugging code
Extract Output class
Whitespace
Workaround for SimpleCov issue with json

This feels unsatisfactory, but it is a known issue:

https://github.com/colszowka/simplecov/issues/249