Cleaning up device data before showing on the device page.