Well, I've changed my mind. For clarity, I suggest using WikiFactory::getVarIdByName method here :)