move persistence configurator to core