quote command & huge command handling refactoring