Move reset code to a separate message.