NOJIRA - small cleanup in the canvas/google tasks code

makes it a bit more DRY