Move some more code to Xapi_pgpu_helpers

Signed-off-by: John Else <john.else@citrix.com>