AMBARI-7464. Make stack_advisor code more human readable (srimanth)