Simplify the UART ISRs while avoiding nested if-statements.