[CloudKitAtlas] Unified version of the sample