Tighten code in constantize_record_name