Remove admin useless code