Moved transitory refactoring functions into a module rmtmod.scm