Can legal fees from rental property lawsuit be deducted?

We purchased a rental property and was forced to sue the previous owners over undisclosed defects. 

 

We retained a lawyer and will eventually end up in court.  Are those fees deductible?