remove self-executing method from instrumented file