Rewrite conditions.