Applying a definition variable to a factor mean