Factor out icanlendar to event dict