I have several functions that I use both on the host and the device. Currently I have to write every function twice because I need to precede the device functions with device and accordingly the host functions with host. Is there a way to avoid this?