def knockout_gene(model, gene):
    """Knocks out a gene from model. The model state
    is persisted thereafter and returned to caller."""
    # Removes gene entirely from model
    model.genes.query(gene).pop().knock_out()
    return model