Extracted: code into escape_escape_escape repo.