Refacotring create pull request class

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