I think I've implemented my own extend schema function, try using an implementation from a library: graphql/graphql-js#1014
Go through this whole repo and look for abstractions that you've created manually. Chances are there are already libraries for these, or if not, PR into the libraries