Split persistence service into copybeans and types.