Like code development has certain standards, model development too has its own
guidelines which should be followed to ensure quality. Often guidelines are
overlooked in model development but they are important for readability,
effective development process and workflow, effective simulation, efficient code
generation, verification and validation (ref Mathworks). The purpose of
refactoring is to transform a model in such a way that it satisfies these
guidelines with no change in its internal behavior. Although it is possible to
refactor a model manually but it becomes difficult when size of model is too
large and repetitive when same refactoring is performed on different models.
Developing automated scripts for refactoring would save time and efforts in
future. Also it would ensure better quality in models.