Extract the settings decalration

-moves out of the function to ensure the docstring is set
Re-indent the file