Extract ColumnDefinition.kind checks
Replacing switch by polymorphism to convert relations into restrictions