defunctionify