Separate Document and Editor factories.