Resolved rubocop offenses and abstracted task update to model.