refactor BlogRepository