Moved some of the settings creation code into a new function. The runtime should be able to fix incomplete or broken settings later.