Unify ProcessFilter and MessageFilter types