issue #22244: refactor document associations

requires https://github.com/xtuple/xtuple/pull/1964