Migrate emails controller to not use notification type anymore