Refactor serverview privileges + simple UT