Group common subrutines in Utils

Identifying devices is the same procedure with different type of
devices. Utils will hold these common subrutines.