Reduce complexity in deis.py's main() by refactoring command dispatch lines