Can this code be refined a bit more?

Printable View