Refactors scaling group