Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
* refactor util funcs to allow reusage. Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>