Performance improvements to coursequotas report plus code organizational changes