abstract out filterTyoe init and teardown into filterTypeOp function