remove redundant code declaratons (from existing templates)