Why not build a scanner for common structures like "isArray" and automatically submit a PR to replace the usage with built-in tools or something like lodash.
(I know program comparison is akin to the halting-problem, but for simple templates it should work).