Refactoring: Move commit collecting logic to Commit class. Leave only query methods inside repo