refactoring spn chapter sections