refactor team members into directive