Some refactoring.
Inline parse_environment_{options,parameters}.
Don't check environment for attributes that are already set.
Encapsulate dealings with ivars.
Factor out environment-variable handling.