Bankruptcies handle in the federal courts, and the rules are outlined in the US Bankruptcy Code. These rules are affected by the state where the Bankruptcy is filed and the rulings of the bankruptcy courts and appellate courts in their district. Not every every  ruling for one bankruptcy court automatically apply for other ones. So different states and federal courts can rule on the same set of facts differently when interpreting the law based on precedent in that court.