Simplifying the display template function of the description handler
Reducing the amount of work done in the template
Removing unused variables
Passing the study around so we can minimize accesses to the db