Remove redundant code from some dataset module factories
_The documentation is not available anymore as the PR was closed or merged._
This PR removes some redundant code introduced by mistake after a refactoring in:
- #4576