Remove old writeLatex method