Workaround TypeOf behavior with definitions