Remove unused code for admin resource