Splitting Repository struct into read and write repository