Change hints from case statement to pattern match on function arguments