Refacotring create pull request class