Refactor zju plugin.