Massive refactoring of profiles and roles