While usually legal to do so, it is typically also equally unwise to do so. That may displease you and others, but I don’t think that aspect is a highly relevant factor here.
The legal route can be very expensive, and it can be short circuited when the parties come to some agreement, which is harder to do when parties are unnecessarily antagonistic.