Moved a DOM helper to the Matryoshka object.