I will try to abstract that out tomorrow morning in gaia_test for this.