trinity.php is now, instantiate.php.
The keyword 'trinity' goes 'instance'.
instantiate.php is now, instance.php.
Reduce number of 'global $instance_config;'.
rename $TR to $INSTANCE
Remove 'TR_' prefix.