refactoring around Environment::AssignValue
refactoring around Environment::AssignValue