Refactor artisan command