extract getInstance method