Deprecate line number filtering.

Follow up to #1415 for 2.99.

/cc @JonRowe