Moved several files to common utils to be shared with other non notifyfs projects as well.