Refactors Printer#printLine