This module exports a method that is useful for factory classes.