Add decorator for factor.