Deleted unused helpers; defined spec for context_rule