Refactor how methods are added to Object for async invocation.