Move some of the assignment-specific code to AssignmentTag.