[tor-commits] [lego/master] Refactor plugin