This is a really long route. Please break up the functionality into named methods to make the body of the route easier to read.