Move changeset XML generation to a view