I don't think there is a minimum length by code, perhaps this 1.5D thing is simply a rule of thumb.
When I have designed spools, the bolted type with either a RTJ or RF profile, obviously you need the distance in the saddle long enough to accept the bolting, wrenches for make-up and clearance. I have typically added the length of a socket head plus an inch times two, one for each flange bolting. I believe this works out "roughly" less than 1.5D, but not by much.
Approach the design by using practical sense. What is needed to get the spool into position, then secured?
Hope this helps.
Kenneth J Hueston, PEng
Principal
Sturni-Hueston Engineering Inc
Edmonton, Alberta Canada