[sysadmin] Refactor useradmin and repoadmin