En mängd lagar och förordningar styr hur en ombildning från hyresrätt till bostadsrätt skall gå till.