Editor code cleanup.