Clean up some code by creating a method to get the decrypted string from the settings