Dylan Hartley reckons England's Six Nations victory over Ireland can be traced back to recent heartbreaking defeats against New Zealand and France.