Refactoring role view pages