Refactoring roles tool