How to handle multiple cases which use common code?

Printable View