Maintaining the productivity of co-culture systems in the face of environmental change