See these pull requests: OpenFn/language-dhis2#53 and OpenFn/language-dhis2#54
It's possible that neither of these operations are required any longer, but we should probably not make drastic changes until we consider the new shape of the dhis2 (with magic functions for visual building) and take into account dhis2 api changes.