Refactored the StoreViewModel.