Simplify the if/else logic when determining parameter type