agent: Simplify filterMembers