hid: Break HidD functions out into their own module.