DNN-3493 Build a dependency graph of extensions