Move code for detecing Btrfs subvolumes into a separate method