Refactoring AMMSemesterTVC, breaking long functions into smaller ones