Refactor RStudio role.