Primitive rewrite support.