Replacing generator gsub_file with insert_into_file