Cut into small function read_from_configuration_file function.

This permits to reduce McCabe cyclomatic complexity from 16
to less than 10.