Adding createFactory

Forgot about this piece but is important for removing warnings.