Factor output out into separate configurable class structure.