rewrite feature-expression computation from different sources of variablity