Removed redundancy in cube rule.