Rearrange device modules' functions to use directly inside of module.