Can we use a function to perform this conversion instead of inlining it? Something like `toDevicePixels()` maybe? Does this make sense to you?

Thank you.