Refactor configuration options into environment file.