I intend to copy this implementation to mainline Cura when it's done. Contributes to issue CURA-8686.