Since we haven't yet done this first party, Phil implemented essentially what you're asking for in his integration toolkit module: