Refacotring create pull request class

Redundant `self` detected.