Remove append_if_no_such_line to sync with shared module.