remove bad antipattern