[Refactoring] Rename makeInvariant to makeImmutable
Merge pull request #2942 from 9rnsr/refactor_immutable

[Refactoring] Rename makeInvariant to makeImmutable