Refacotring create pull request class

Redundant `begin` block detected.