Defining a Rewriting Autopolicy