Simplify game palette related code (#10908)