Refactored roles-by-team stuff out of example view and into model proper