Factored app creation out into helpers.