Allow targets to custom legalize vector insertion and extraction.