Small refactor in store.
Makes `createdRecord` optional as per #55.