move duplicate helpers into module_utils/rax.py