Use addIdentityFields in handleGetIdentities instead of duplicating its functionality