move intra-mode decision into its own decision-tree function