Rename handlePGType to registerPGType