Extract repository for persistence.