refactor devise emails