Refactoring of Pull Request API