Extract repository class from base