Remove code duplication action_ok_file_path