Preserve classes when connecting to a transformed table