Switch from deprecated team member API to team memberships API