gdbus: refactor gdbus proxy functions