Simplified rewrite rules.