refactor factory using key=>value for create god instance