"The docs may, just like other business, restructure their businesses to optimize tax treatment."

Most businesses operate to maximize revenue which unless the activity creates a loss on it's own will maximize total profit, only a foul would restructure their business looking solely at the tax code as you recommend.