Avoid double StringMap lookups. No functionality change.