Refactoring of multi-section apps