Moved the delete-before support into generator.c.