StatementContext refactoring where index rule interaction is using IndexRule objects directly