Simplify match on inputs.