Rewriting koality modifications