[sever][DataStore] Replace a return type from a pointer to a reference.