Fix multiple replacements in the same file

Added `confirm` module to encapsulate this
Add TODO for known issue