Allows custom command factories