Refacotring create pull request class

Line is too long. [86/80]<br>Redundant `self` detected.