Now that we have ES6 imports and wide CommonJS support I don't see any good reason to use hacky DI with Function#toString.