Clean up the nested if-let with a switch on a tuple of optionals.