refactor: use switch instead of if/else to select ProfController type