Remove first three lines if starting with "DO NOT EDIT THIS FILE"

Patch for #10312