Removing redundant predicate anding.