Added ability to remove unassigned user role.
Refactored code.
Merge pull request #3232 from lwyszomi/104228-case

Added ability to remove unassigned user role.