Extract code from command class
Extract an instance method from a class method