Windering if a `switch` statement couldn't enhance readability here?