gn2bp: try to put all common path operations in one function

This *might* just work. We'll see, I guess.

Test: none
Change-Id: Id78af8f1b1b7bc3b0e253e17c99049c72be49f08
1 file changed