get rid of unused function extend-environment-one