Support declarative hierarchical state