A company has been fined almost £2.5 million after a death at their Bradford site which was treated “like a playground”.