Refactored the overload solution

Indent `when` one step more than `case`.