Controller._recompute_model_lshape. Refactored
Controller. Changes to abandon