Dividing plugin into module