Continue refactor PreTeX Editor Module Plugin