Replacing component name in annotation to constant