Extract adapter definition from store.js to application_adapter.js