Minor refactoring in duplicate role extension check
Validation check to detect duplicate user references in constraints