Use factory method to use plugins.