Reduce dependencies on the ions_m module
Description
Reduce dependencies on the ions_m module:
- Remove dependencies on the ion module.
- Remove the dependence on ions_m in the io_function_m module.
Most of the changes, that can be done thanks to the fact that the IO does not depend on the ions_m module will be done in a subsequent merge request.