Remove unnecessary mutability

review by @dimitrkovalsky