Reducing collection dependencies with conditional rules and global conditions