Refactor dak_event_post_type.php