Generalise the TRE parsing approach so that it should work OK everywhere.
IMG-16: Remove unneeded initialisation check.