Agreed that this code is hard to follow.

If `glDerive` means "original derivation info", why not just call this `originalDerivationInfo`?