Refactoring of PostRepository.Get() method