Convert configurations in a file to configurations which code can use.