Removing unused template variable