copy-paste utils from CiviHR for select list
re-implement role field as select list