Removes useless parameters and re-indents the code