Refactoring of manage artisan command.