CLC-1100 Do not lose Canvas assignments due earlier today
Refactor to reduce code duplication.
Merge pull request #566 from raydavis/raywip

CLC-1100 Do not lose Canvas assignments due earlier today