STY: Refactored common code in salt.module.pip to make it easier to maintain and simplify the code
BUG: Set warning on deprecated runas option to occur at the right stack level
Merge pull request #15360 from cimarronm/module_pip_refactor

Refactored common code in salt.module.pip to make it easier to main...