Get rid of unnecessary mutability.