Moved config & permission checks into scaleHealth method to simplify code

This doesn't change any functionality.  It simplifies the config / permission checking and moves it to a spot where it can be re-used instead of duplicated.