remove unused class (for top-level function)