remove unnecessary `case`