Remove unused fields from the ObjectRule class

refs #7622
Refactor the AST