BSON validation counts each nested code with scope as two nesting levels, but KeyString counts as only one.