Removing unused methods.
Fixing ProcessPartitionExpVariableTest.
Cleaning up InstanceUtil.