Replace constructor with factory method

Last modified: 08 March 2021

The Replace Constructor With Factory Method refactoring lets you hide a constructor and replace it with a static method which returns a new instance of a class.