Removed now-useless branching logic in `CommandToAction`.