anchor.diff:  -spec create_or_update(datastore:document(), Diff :: datastore:document_diff()) ->
       {ok, datastore:ext_key()} | datastore:update_error().
   create_or_update(Doc, Diff) ->
  -    case datastore:create_or_update(?STORE_LEVEL, Doc, Diff) of
  -        {ok, Uuid} ->
  -            catch file_meta:setup_onedata_user(provider, Uuid),
  -            {ok, Uuid};
  -        Error ->
  -            Error
  -    end.
  +    run_and_update_user(fun datastore:create_or_update/3, [?STORE_LEVEL, Doc, Diff]).
   
   %%--------------------------------------------------------------------
   %% @doc
  
positive.code: %%%===================================================================
  %%% Internal functions
  %%%===================================================================
  
negative.code: %%--------------------------------------------------------------------
  -spec create(datastore:document()) -> {ok, datastore:key()} | datastore:create_error().
  create(Document) ->
      run_and_update_user(fun datastore:create/2, [?STORE_LEVEL, Document]).
  
  %%--------------------------------------------------------------------
  %% @doc
  