Enforce the type of nestingDepth