We need this function in at least on other part of the application so extracting it into an util file was only logical. Signed-off-by: Philip Molares <philip.molares@udo.edu>