StaticCall rewrite fetch class to temp variable