web: application refactoring