:+1: to replace `if/elsif` by `case/when`.but :-1: to put them all in one line, this is less readable.

Also :+1: to introduce the variable `hit_class`.