class library: patterns: remove unnecessary cleanup arguments