Setup the trigger only one time for each model involved in the payload, improve performance
Do not maintain the warehouse triggers in the before_save filter
Change maintain_warehouse_for parameters