Remove OneKeyFrom type check to reduce compile time.
#7115
Merged
OneKeyFrom type check to reduce compile time.
#7115