remove classname_method pattern