Robustify the derivation of contrast conditions.