Only initialize admin notice in admin.