[all] Move usergroupgen to helpers