Cleans up __proc_give and _take code