Removes redundent credentials and config settings