Refacotring create pull request class

Line is too long. [108/80]<br>Redundant `self` detected.<br>Avoid using `rescue` in its modifier form.