Convert the watch-deep function to a constructor.