Move the workaround for Derby's blob handling into ASModel's SequelHooks