CGE: Replace magic numbers with defines.