Best way to minimize code in a controller?

Printable View