Moving a method in email_task.rb