The setup of DbContext pooling is currently tied to DI. While it's possible to set it up without DI, that currently requires using internal types.