Refactoring by applying slap