Tidy up team refs in CalculateRansk.