Refactoring

Below are some common refactoring patterns:

Porting legacy code to Mithril