Perform token replacement in initialize phase rather than generate-sources.