I think this method could be part of the ViewVarsTrait, it is the same as the one in the controller and most probably can be reused for the Email class.