Extract color double setup in to shared context.