Is not clear to me this function,  it goes through all the possible steps removing them if they have a setting key, but the setting key is not available ...

Should we name it in a different way? (Please take into account that I'm not a native speaker, so I may be wrong)