plug-ins, pdb: remove the lens-apply plug-in and add a compat procedure