To make BuildEnvironment simple, the responsibility of converting source files to doctrees is moved to Builder class.