Refactor select-if statement with lot of duplicate code

Printable View