Would you look into whether any of this should be generalized later in annotator-store's ES helpers, please? I'd be curious.