Renamed 'resource' field in state to match parent_resource convention for has_hierarchy.