Can I simplify the following function

Printable View