Fixed type resolution for uninitialized factory-method declaration

Issue: SPR-11112