Refactor g_kdbus_GetOwner_handler function