btrfs: refactor btrfs_drop_extents() to make it easier to extend