Move code from CreateLearnerView to View Model