Export type classes to write polymorphic query expressions.