Refactoring REST calls into LearningDashboard model