Cleanup unused code in the matrix demo model.