Earlier quoted context omitted.
> I suspect that the license may not require you to retain the notices It explicitly does.
Just read the MIT license. Doesn't say anything about file headers.
The fact that the work is also included in a compilation, which is a separate copyright protected work, and that work has its own copyright notice and is offered under the same license, does not somehow alter the license requirements on the component work within the compilation, so that of the compilation’s copyright is preserved as required by the license of the compilation, there is no obligation to preserve the copyright notice of the component work as required by the license on the component.