utils: factor DEFINE-SIMPLE-CONDITION, add DEFINE-SIMPLE-WARNING