Move admin functionality to namespace