Begin refactor PreTeX Editor Module plugin