remove obsolete and unused di configuration code

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no (unless we consider not allowing anymore some unused and documented to not use configuration)
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT