Shift device detection to Utils.MiscFunctions class