Refactor out code that will be shared with bridging
Very very basic publish via bridge code.