Make bracketing generic