Change variable name in factory definition