Store prefix rank in a ModeHandler field, change ModeHandler::GetPrefixRank() to be non-virtual