Remove extractValue function as it was using unnecessary eval