Move code to new feature.cxx file. Activate it in the allocate phase rather than in individual languages.