Rewrite u2gpd in terms of qgpd

u2gpd is essentially a reimplementation of qgpd, let's make that explicit.