Can you factor some of this out into common functionality for both here and `js/store/calendar.js`?