Simplify cst_mlpg code.