Add function embedded_mongoform_factory(Document)