g_kdbus_register() function refactoring