Refactor server privileges