Add a ForeignKeyTransform, and move the changing of refererences for removed users out of the UserTransform and into a ForeignKeyTransform that is registered by the UserFilter