Factorizing duplicated code in GraphicUpdatePDU. (Remove unused code.)