Remove function 'replace_in_inp' after extraction