Extracted _RGBXBIT macro into RGBXBIT function.