refactor stop campaign code