Automatically generate implementations of functions in Instantiate.