How would you refactor this code?

Printable View