Share common code between calendar picker and color suggestion picker