Move the command reset code to m.Reset

- It is used in multiple places, so refactor to new function on
  normalMode.