Simplify Shiny-related code