Removed utility functions from eventHandler.go and setupWatch.go and put them in util.go