sites configuration refactoring