Refactor plugin into single class, single and multi project scripts