Reduce match branches