remove design patterns