Detect and log when _repair_traits is not properly set up.