Refactor duplicated code in AxisCreator.py
Refactor duplicated code from the if statements checking if ads/ca/pva url and reuse commonly where possible.
Refactor duplicated code from the if statements checking if ads/ca/pva url and reuse commonly where possible.