Setup for factory pattern