formatHistory and mapIdsToMemberNames services