Refactoring of the replaces into functions (70X version)