Refactored student teams controller