extracting related collections and repositories

trying my hand at this...