Local externs like this are dangerous, since they need to be updated when the definition changes. This function should probably just be exported from store.h.