Reduce duplicity and complexity in command line