Refactoring editable pages to extract common code.