Reduce code duplicates in output routine