The IRS published a lot of guidance this week on the subject. Forbes has an excellent analysis and explanation of this topic. I advise reading it before it goes behind a paywall. The guidance included a safe harbor for real estate enterprises.
formatting link
OR
formatting link