Refactoring config.
BuildDocument refactored.