Refactor parsing of event ID from location HTTP response header