Remove redundant conditions