Best practices for configuring the DI pattern