Remove duplicate calls to ord()