Refactored duplicate code between scale and stop commands.

[Finishes #84227828]

Signed-off-by: Chelsea Troy <ctroy@pivotal.io>