Fix the ability to remove template parts.