Remove some pointer indirections in device.go.