Remove unneeded mailhandler code from registry update hook