NameScope is no longer an attached property. Instead, we attach it directly to the object.