That would be the case in tax years beginning after 2017 thanks to TCJA.
Prior to that, expenses that are ordinary and necessary to maintain the investment property under section 212 can be capitalized through a section 266 election.
I believe that would include insurance, utilities, lawn maintenance....etc.
and since it was incurred for the management, conservation or maintenance of the investment property, it is a section 212 expense eligible for the 266 election.
The basics of the 266 election in this case are to capitalize expenses that would otherwise be deductible to the partners as misc on Schedule A.
Since the house was not held as a rental, the legal expenses are not deductible above the line.