Configuration rewriting