textproc cmd: refactor chains, filter constructors