Could you indeed rewrite this without the icalendar dependency. Let me know if it's too involved.