Moves `watchVisibility` into `autorefresh` plugin