Remove code that effectively reimplements functools.wraps