Removes unnecessary assignment of variables in admin.