Why not autogen the list of qmlRegisterUncreatableType<`UAVObject`>("org.Openpilot", 1, 0, "`UAVObject`Type", ""); line through the use of a template?