Revert "Port to declarative type registration"
It causes problems because we don't register Kirigami::PlatformTheme any more.
This hints at a deeper design problem, in absence of a proper solution revert this to have things working again
This reverts commit a5812d0d.