Factored controller helpers out into module files