removeUnusedMapParams will always keep at least one parameter