Move `createRendererFactory()` to its own method.