Can this code be reduced?

Printable View