This PR splits issue/pull view function into multiple smaller functions. It also removed duplicated branches load.