Fix missing to on reassign email when unassigned.

Factors out MR and issue email.

When you reassign to unassigned, it says on the email "reassigned to " (empty).

This started out as a refactor but ended on a bug fix: it had already been fixed for issues at https://github.com/cirosantilli/gitlabhq/commit/39f82b7 but not for MRs because of duplication.

Found using https://github.com/UncleGene/flay-haml