Shortcut common case of calling same-env component_getFactory fn

Change-Id: I7f5d31c3b3e128b2df4d83c915673bf7b5d2ab8c