extracted modifyLineInAFile() method into ModuleAppHelper class