Refactoring the plugin language class