Move formatTeam to prototype