Update ColorFactory to avoid the generation of same successive colors