anchor.diff:      Data = compress_maybe(ej:delete({<<"metadata">>}, CBVData),
                                 chef_cookbook_version, DbType),
       #chef_cookbook_version{id = Id,
  -                           authz_id = AuthzId,
  +                           authz_id = maybe_stub_authz_id(AuthzId, Id),
                              org_id = OrgId,
                              name = ej:get({<<"cookbook_name">>}, CBVData),
                              major = Major,
  
positive.code:     Id = make_org_prefix_id(OrgId, Name),
      Data = chef_db_compression:compress(DbType, chef_node, ejson:encode(NodeData)),
      #chef_node{id = Id,
                 authz_id = AuthzId,
                 org_id = OrgId,
                 name = Name,
                 environment = Environment,
  
negative.code:     Bin = iolist_to_binary([OrgId, Name, crypto:rand_bytes(6)]),
      <<ObjectPart:80, _/binary>> = crypto:md5(Bin),
      iolist_to_binary(io_lib:format("~s~20.16.0b", [OrgSuffix, ObjectPart])).
  
  %% If the incoming authz id is the atom 'unset', use the object's id as ersatz authz id.
  maybe_stub_authz_id(unset, ObjectId) ->
      ObjectId;
  maybe_stub_authz_id(AuthzId, _ObjectId) ->
      AuthzId.
  