Moved `inTemplate` initializer to appropriate place.