Refactor data retreval/refresh into a CoreDataSource class.