Extract modified items transaction from the main transaction

This is the most brutal solution to this problem but also the only one that currently seems to work without crashing.