Remove a team's members when it gets deleted
Also fix the build