Since this is now just doing equality checks on strings, would it be clearer as a `case` statement?