This creates an object that manages all the extensions and how they interact with the entries in the EntryTree, it expects an EntryTree as argument.
const extensionManager = createExtensionManager(entryTree);
extensionManager.extensions = [
// extensions here
];