You're missing the relevant portion of the law. For a DMCA takedown notice for code, it doesn't matter who owns the copyright for the code. It is sufficient for purposes of the DMCA notice to allege that the code is being used for infringing purposes. 17 US 512(c)(3).