Integrate DocmentFactory into SurfaceComponent.