Refactor legacy redirect code and create helper functions
Transform legacy module links within collections

Close Connexions/rhaptos.cnxmlutils#73