Extract gmail function now passed kwargs to the Incicent model.