Revert "Make config a property of this in the replacer fn"

This reverts commit c739f207ad66b075caf1f91ba59345eef7de0599.