refactoring RHEL provider variables into functions