Instantiate correct schema instance.