Use a constructor function for proxies
Use a typed function for handlers