Strips back out raiseEditLayer calls, which cause other problems.