Update callers of check_ref_format()