Refactor and add specs for #assign_intern_mail