Creates factories to instance traits