Don't call teams_by_name twice.