Remove use of factory defineAs.
Remove use of factory defineAs.

Signed-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>

orchestral/foundation,orchestral/foundation,orchestral/foundation