def rewrite_elife_references_json(json_content, doi):
references_rewrite_json = elife_references_rewrite_json()<EOL>if doi in references_rewrite_json:<EOL><INDENT>json_content = rewrite_references_json(json_content, references_rewrite_json[doi])<EOL><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>for i, ref in enumerate(json_content):<EOL><INDENT>if ref.get("<STR_LIT:id>") and ref.get("<STR_LIT:id>") == "<STR_LIT>":<EOL><INDENT>del json_content[i]<EOL><DEDENT><DEDENT><DEDENT>return json_content<EOL>
this does the work of rewriting elife references json