extract Algo_CB_IntraPartMode into its own file