Coordinating assembly and export of complex bacterial proteins