I agree, I'm not happy with what is going on in `_aggregateMembershipsDocuments` right now, but left out that refactoring to manage the scope of this PR.