Add Scope in factory method

Signed-off-by: unknown <hengc@HengC-W7.analytics.moodys.net>