Deduplicate some code in WorksController#marktoread.