Refactors Teams.

Gets rid of static methods.
Separates iteration over members from team creation.