Remove unnecessary where condition.