Refactor config for better docs.