For almost all elements it's first <container-element-type> and then <constraint>, only for ContainerElementTypeType it's the other way around. This should be made consistent.