refactor repositories to library