Refactor helper code into the view since it's not being loaded in the main app.