Extract selectInput logic into TxHelper