All the util functions are inside individual controller module. Transferring the functions in the util folder to avoid repetition.