DI 2.0.0

Is `Factory` defined somewhere
- if yes the return type should be updated,
- if no the comment should be updated "factory [Function]"