Ensure that using Index{Creator|Definition} instances requires to be inside a transaction.