Refactor #write_sample_configuration.
Refactor #write_sample_configuration.

Small refactor of Pear::Configuration#write_sample_configuration. Three
methods were extracted improving primarily readability but also
maintainability.

horacio/pear,svankmajer/pear