Code refractored in FactColor class