$editor = "no editor" if $record->{'services'}[0]{'class'} && $record->{'services'}[0]{'class'} eq 'Primary';