Refactoring propel roles logic in user and group.