Can these two lines of code be simplified?

Printable View