Fix item detail transformation.
Support any polymorphic model.